package com.huangfuyi.process.entity.node;

import com.huangfuyi.process.actuator.enums.EPNodeType;

public class EPNodeEntity {

    // 流程节点id
    private String id;

    // 流程节点名称
    private String name;

    // 节点所属流程模板id
    private String modelId;

    // 流程节点类型
    private EPNodeType nodeType;

    // 节点功能配置，用于在EPNodeAppManager中获取需要完成的业务逻辑
    private String application;

    // 调度配置，用于在调度框架中指定节点运行时机，使用的调度框架不同，配置内容有所不同
    private String schedulerConfig;

    // 节点抛出异常后的处理节点。
    private String errorHandelNodeId;

    // 节点前置运行逻辑的相关配置，用于在EPBeforeRunningManager中获取节点初始化前需要运行的逻辑
    private String beforeRunningConfig;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public EPNodeType getNodeType() {
        return nodeType;
    }

    public void setNodeType(EPNodeType nodeType) {
        this.nodeType = nodeType;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public String getSchedulerConfig() {
        return schedulerConfig;
    }

    public void setSchedulerConfig(String schedulerConfig) {
        this.schedulerConfig = schedulerConfig;
    }

    public String getErrorHandelNodeId() {
        return errorHandelNodeId;
    }

    public void setErrorHandelNodeId(String errorHandelNodeId) {
        this.errorHandelNodeId = errorHandelNodeId;
    }

    public String getBeforeRunningConfig() {
        return beforeRunningConfig;
    }

    public void setBeforeRunningConfig(String beforeRunningConfig) {
        this.beforeRunningConfig = beforeRunningConfig;
    }
}
